home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: fwrite help?
- Date: 22 Feb 1996 02:59:05 +1300
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4gf8f9$hmh@airdmhor.gen.nz>
- References: <4fmaig$7of@news.global1.net> <harmon.824165113@pegasus.montclair.edu> <danpop.824668361@rscernix>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- In <harmon.824165113@pegasus.montclair.edu> harmon@pegasus.montclair.edu (Derek Harmon) writes:
- > first element in line, sizeof(char) for size insures compatibility on machines
- > where a character is more than one byte,
-
- Dan Pop:
- > Nonsense. sizeof(char) is 1 _by definition_. The real reason behind
- > writing sizeof(char) is to improve the readability of the code for the
- > human reader. To the compiler, sizeof(char) and 1 are equivalent in most
- > contexts (they have the same value, but different types).
-
- Oh I wish.. and the fact that I can argue against what you say just goes
- to show (if you knew what I'd just done) how stupid I was. Watcom supports
- multi-byte chars (this is what it calls them), if a character is more than
- one byte, then it would be very difficult to fit it in to one byte, would it
- not?
-